<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<table
	class="am-table am-table-bordered am-table-striped am-table-hover am-table-centered">
	<thead>
		<tr>
			<th width="10%">序号</th>
			<th>标题</th>
			<th width="15%">最后编辑时间</th>
			<th width="10%">文章提供者</th>
			<th width="10%">文章所属模块</th>
			<th width="10%">浏览次数</th>
			<th width="20%">操作</th>
		</tr>
	</thead>
	<tbody>
		<c:forEach items="${page.records}" var="c" varStatus="status">
			<fmt:formatDate value="${c.insertTime}" pattern="yyyy-MM-dd"
				var="insertTime" />
			<fmt:formatDate value="${c.updateTime}" pattern="yyyy-MM-dd HH:mm:ss"
				var="updateTime" />
			<tr class="select">
				<td>${status.index + 1}</td>
				<td>${c.title}</td>
				<td>${updateTime}</td>
				<td>${c.insertUser}</td>
				<td>${c.columnName}</td>
				<td>${c.viewCounts}</td>
				<td>
					<div class="am-btn-group am-btn-group-xs">
						<button class="am-btn am-btn-default am-btn-xs am-text-success"
							onclick="article.preview('${c.seqId}')">
							<span class="am-icon-eye"></span> 查看
						</button>
						<button class="am-btn am-btn-default am-btn-xs am-text-secondary"
							onclick="article.edit('${c.seqId}')">
							<span class="am-icon-pencil-square-o"></span> 编辑
						</button>
						<button
							class="am-btn am-btn-default am-btn-xs am-text-danger am-hide-sm-only"
							onclick="article.del('${c.seqId}','${c.title}')">
							<span class="am-icon-trash-o"></span> 删除
						</button>
					</div>
				</td>
			</tr>
		</c:forEach>
	</tbody>
</table>
<%@ include file="/WEB-INF/jsp/manage/page.jsp"%>
